home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
LOGIC Apps
/
Logic-APPLE_II_APPS.iso
/
pc
/
LOGIC Apple II 5.25" Library - DOS Part 3
/
DOS074.dsk
/
SAVE A SKETCH.bas
< prev
next >
Wrap
BASIC Source File
|
2012-02-16
|
3KB
|
83 lines
10 HOME
15 S = 12
20 FOR X = 10 TO 15
22 VTAB (S)
25 PRINT TAB( X)"SAVE A SKETCH "
30 S = S +1
35 FOR T = 1 TO 500: NEXT
36 VTAB (S -1): PRINT TAB( X)" "
40 NEXT X
50 HOME
60 SPEED= 150
70 PRINT "WHICH FUNCTION ?"
80 PRINT " "
90 PRINT "1 DRAW "
100 PRINT "2 DRAW THEN SAVE "
110 PRINT "3 LOAD A DRAWING"
120 INPUT F
125 IF F = 3 THEN 5000
130 VTAB (10)
140 PRINT "DO YOU WANT TO USE THE PADDLES OR THE KEYBOARD TO DRAW THE PICTURE"
150 INPUT F$
160 HOME
180 PRINT "INSTRUCTIONS FOR SAVING A PICTURE"
185 PRINT " "
187 IF F$ = "KEYBOARD" OR F$ = "K" THEN 200
188 PRINT "USING PADDLES"
189 PRINT " "
190 PRINT "PUSH THE BUTTON ON THE VERTICAL PADDLE TO NOT PLOT AND PUSH THE BUTTON ON THE HORIZONTAL PADDLE WHEN FINESHED DRAWING"
195 GOTO 300
200 PRINT "USING KEYBOARD"
205 PRINT " "
207 PRINT "TYPE"
210 PRINT "D TO MOVE POINT DOWN ONE SPACE"
220 PRINT "U TO MOVE POINT UP ONE SPACE"
230 PRINT "R TO MOVE POINT RIGHT ONE SPACE"
235 PRINT "L TO MOVE POINT LEFT ONE SPACE"
240 PRINT "N FOR NO PLOTING ON THE SCREEN Y TO START PLOTING AGAIN"
245 PRINT "S WHEN FINISHED DRAWING"
300 PRINT : PRINT : PRINT : PRINT
310 PRINT "AFTER YOU FINISHED THE DRAWING THERE WILL BE INSTRUCTIONS ON HOW TO SAVE THE PICTURE"
320 HOME
330 HGR2
340 COLOR= 3
350 IF F$ = "KEYBOARD" OR F$ = "K" THEN 2000
370 X1 = INT( PDL(0) *1.085)
380 IF PEEK(0 -16287) >127 THEN :CO = 1
390 FOR X = 1 TO 10: NEXT
400 Y1 = INT( PDL(1) *.74)
410 IF PEEK(1 -16287) >127 THEN 10000
420 IF CO = 1 THEN : HCOLOR= 0
430 HPLOT X1,Y1
440 CO = 0: HCOLOR= 3
450 GOTO 370
2000 GET C$
2005 IF C$ = "S" THEN 10000
2010 IF C$ = "R" THEN X1 = X1 +1
2020 IF C$ = "L" THEN X1 = X1 -1
2030 IF C$ = "U" THEN Y1 = Y1 -1
2040 IF C$ = "D" THEN Y1 = Y1 +1
2050 IF C$ = "N" THEN HCOLOR= 0
2060 IF C$ = "Y" THEN HCOLOR= 3
2080 IF X1 <1 OR X1 >278 THEN 2000
2090 IF Y1 <1 OR Y1 >190 THEN 2000
2100 HPLOT X1,Y1
2110 GOTO 2000
5000 HOME
5010 PRINT "TO LOAD A PICTURE TYPE "
5020 PRINT " "
5030 PRINT "* C050 C052 C054 C057 2000.3FFFR
5040 PRINT " THEN HIT RETURN "
5050 PRINT " "
5055 PRINT "AFTER THE PICTURE HAS BEEN LOADED YOU MUST LOAD APPLESOFT AND THE PROGRAM AGAIN TO MAKE ANOTHER PICTURE "
5060 PRINT " "
5065 PRINT "IF YOU HAVE ANOTHER PICTURE TO LOAD JUST TYPE 2000.3FFFR AND CONTINUE TO PLAY THE TAPE"
5068 FOR X = 1 TO 2000: NEXT
5070 CALL 151
10000 TEXT : HOME
10010 PRINT "ON THE BEEP TYPE 4000.5FFFW THEN PUSH PLAY / RECORD AND RETURN"
10020 PRINT : PRINT "IF YOU WANT TO SAVE THE PICTURE TO DISK TYPE BSAVE (NAME) ,A4000 ,L1FFF,D1 TO 2 ,V0
10030 PRINT : PRINT "WHICH DO YOU WANT 1 DISK OR 2 TYPE"
10040 INPUT V: IF V = 2 THEN 10060
10050 END
10060 PRINT "<CTRL-G>": CALL -151